package com.ruoyi.quality.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;
import java.util.Date;

import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 评价项目业务对象 quality_classification_items
 *
 * @author ruoyi
 * @date 2023-12-05
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class QualityClassificationItemsBo extends TreeEntity<QualityClassificationItemsBo> {

    /**
     * 项目id
     */
    @NotNull(message = "项目id不能为空", groups = { EditGroup.class })
    private Long itemsId;

    /**
     * 项目名称
     */
    @NotBlank(message = "项目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String itemName;

    /**
     * 分值
     */
    private BigDecimal score;

    /**
     * 岗位id
     */
    @NotNull(message = "岗位id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long postId;

    /**
     * 项目状态（0正常 1停用）
     */
    @NotBlank(message = "项目状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
